package com.wpf.hf.fallback;

import com.wpf.hf.entity.Result;
import com.wpf.hf.feign.OrderFeign;
import com.wpf.hf.pojo.Order;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class OrderFallback implements OrderFeign {
    @Override
    public Result<List<Order>> findOrderList(String username) {
        List<Order> list = new ArrayList<>();
        Order order = new Order();
        order.setId("-1");
        list.add(order);

        return new Result<>(false,"查询失败",list);
    }
}
